package com.netcracker.entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class Genre implements Serializable {
    
    private int id;
    private String name;
    private Integer parentID;
    private final List<Genre> subGenres;

    public Genre() {
        this.subGenres = new ArrayList<>();
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getParentID() {
        return parentID;
    }

    public void setParentID(Integer parentID) {
        this.parentID = parentID;
    }

    public void addSubGenre(Genre genre) {
        this.subGenres.add(genre);
    }

    public List<Genre> getSubGenres() {
        return subGenres;
    }
    
}
